PDF4Java Reference Documentation
com.o2sol.pdf4java Package / PDFPage Class / setPageSize Method
A com.o2sol.pdf4java.document.PDFPageSize object that specifies a predefined page size.
In This Topic
    setPageSize Method
    In This Topic
    Sets the PDF page size to a predefined value.
    Syntax
    public void setPageSize( 
       PDFPageSize pageSize
    )

    Parameters

    pageSize
    A com.o2sol.pdf4java.document.PDFPageSize object that specifies a predefined page size.
    Exceptions
    ExceptionDescription
    Thrown when pageSize is null.
    See Also